<?php

	/*
	 * 我的花开里
	 */
?>
<div class="main_box">
    	<div class="left_bar">

   	    <div class="common_box">
              <div class="common_top"></div>
              <div class="common_middle">

					<div class="white_box">
							
							
							<div class="common_title">
								<h1>今日推荐的店铺</h1>
							</div>

							<?php
							if($C2CshopList)
							foreach($C2CshopList as $shop)
							{
							?>
							
							<dl class="item_shop">
                            	<dt>
                            	<div>
                            		<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$shop['id']);?>">
                            			<img src="<?php echo $shop['logo_url'];?>" width="80" height="80" />
                            		</a>
                            	</div>
                            	</dt>
                            	<dd><a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$shop['id']);?>"><?php secho( $shop['shop_name'] ); ?></a></dd>
                            </dl>
                                                      
							<?php
							}
							?>
							                   
                      </div>


					<div class="white_box">
							
							
							<div class="common_title">
								<h1>今日推荐的商城</h1>
							</div>
							<?php
								if($B2CshopList)
								foreach($B2CshopList as $shop)
								{
								?>
								
	                        	<dl class="item_mall">
	                            	<dt><a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$shop['id']);?>">
	                            	<img src="<?php echo $shop['logo_url'];?>" width="110" /></a>
					</dt>
	                            <dd><a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$shop['id']);?>"><?php secho( $shop['shop_name'] ); ?></a></dd>
       </dl> 
							<?php
								} 
							?>

                           
                        </div>

						
                    <div class="white_box">
							<div class="common_title">
								<h1>今日推荐的商品</h1>
							</div>
							<?php 
							
								if($productList)
								foreach($productList as $product){							
							?>
                        	<dl class="item_product">
                            	<dt>
                            	<div>
                            	<a href="<?php echo edp_href_link(PAGENAME_PRODUCT_INFO, 'pid='.$product['id']);?>">
                            		<img src="<?php echo $product['pic_path'];?>" width="150" height="150" />
                            	</a>
                            	</div>
                            	</dt>
                           		 <dd><a href="<?php echo edp_href_link(PAGENAME_PRODUCT_INFO, 'pid='.$product['id']);?>">
                           		 <?php secho( $product['product_name'] ); ?></a></dd>
                            </dl>
        
							<?php
								} 
							?>
							
                        </div>
						
					<div class="white_box">
							
							
							<div class="common_title">
								<h1>今日推荐的点评</h1>
							</div>
						
							<?php
							if($reviewList)
							foreach($reviewList as $review)
							{
							?>
							
								<div class="item_review">
								
			                    <div class="review_pic <?php if(intval($review['plat_id'])< 5 )echo 'review_pic_shop'; else echo 'review_pic_mall';?>">
			                    <a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$review['sid']);?>">
			                    	<img src="<?php echo $review['logo_url'];?>" >
			                    </a>
			                    </div>
			                    
			                        <div class="review_shop_title">
			                        <a href="<?php echo edp_href_link(PAGENAME_USER_INFO, 'uid='.$review['uid']);?>">
			                        	<?php secho( $review['nick'] ); ?>
			                        </a>
			                        <span>点评</span> 
			                        <a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$review['sid']);?>" class="review_title">
			                        	<?php secho( $review['shop_name'] ); ?>
			                        </a>
			                        </div>
			                        
								<div class="review_score">
			                            <div class="point_box">
			                                   <span class="score<?php echo $review['score']+1; ?>"></span>
			                                </div>
			                                <span class="score_name">宝贝真实度</span>
										<span class="score_value"><?php echo $review['reality'];?></span>
										<span class="score_name">服务态度</span>
										<span class="score_value"><?php echo $review['service'];?></span>
										<span class="score_name">发展速度</span>
										<span class="score_value"><?php echo $review['velocity'];?></span>
										<span class="score_name">性价比</span>
										<span class="score_value"><?php echo $review['rate'];?></span>
			                       </div> 	
			                        <div class="review_content">
			                          <?php 
			                         if(EdpStrLen($review['content']>200))
			                         {
			                            secho(EdpSubStr($review['content'],200).'......');
			                         }
			                         else
			                         { 
			                          	secho($review['content']);
			                         }
			                       ?> 
			                       (<a href="<?php echo edp_href_link(PAGENAME_REVIEW_INFO, 'rid='.$review['rid']);?>"> 阅读全文</a> )</div>
			                    
			                        </div>		                     
							<?php
							} 
							?>
	
							
                        </div><!--end of withe box-->	
					
                </div> <!-- end of middle -->  					
                <div class="common_bottom"></div>
         </div>
				
		</div>
	  
	  
	  
	  
	  
            <div class="right_bar">
            
             	<?php  
 				echo '<dl class="news_active"><dt>好友的最新动态</dt>';  
 				if(isset($eventList))
 				{
					$printN=0;
					for($num=0; $num<count($eventList); $num++)
					{ 		
						if(isset($eventList[$num]['html'])&&!edp_is_empty_string($eventList[$num]['html']))
						{	
							if($printN==5)
							{
								echo '</dl><dl class="news_active" id="hiddenEvent10">';
							}
							if($printN==10) 
							{
							    echo '</dl><dl class="news_active" id="hiddenEvent20">';
							}
				?>		
					  <dd><?php echo( $eventList[$num]['html'] ); ?><span><?php echo( $eventList[$num]['timediff'] ); ?></span></dd>				                
                <?php 
                			$printN++;
						}
						if($printN==20)
							break;
					 }
					
					echo '</dl>';
 				 }
                ?>

                <div class="show_number_box">
                	<div class="show_txt">显示最近</div>
                    <div class="show_current" id="five_event" >5</div>
                    <div class="show_no_current" id="ten_event" >10</div>
                    <div class="show_no_current" id="twenty_event" >20</div>
                    <div class="show_txt">条动态</div>
                </div>
            </div>
